// 全局公共功能函数内相关的数据结构

export class JumpOptionsType<T = { [ key: string ]: any }> {
  url: string
  state?: boolean
  history?: boolean
  params?: T
  message?: string
  duration?: number
  bottom?: number

  constructor(url: string, state?: boolean, history: boolean = true, params?: T, message: string = '', duration: number = 0, bottom: number = 100) {
    this.url = url
    this.state = state
    this.history = history
    this.params = params
    this.message = message
    this.duration = duration
    this.bottom = bottom
  }
}